#pragma once
#include "guielement.h"
#include "sdl_ttf.h"

#include "Draw.h"  
class ButtonInput :
	public GuiElement
{
private:
	    //The text surface
    SDL_Surface *text; 
	TTF_Font *font ;

	//The color of the font
	SDL_Color *textColor;
	void (*funct) (void);
public:
	ButtonInput(int x, int y, std::string label, void (*funct) (void));
	~ButtonInput(void);	
	void onClick() ;
	void onClickOut() ;
	void drawElement(SDL_Surface* screen)  ;
	void handleInput(SDL_Event event) ;
};

